

package ConnectionsCommands;

import java.net.Socket;

/**
 * Interface to implement commands execution on tracker server.
 * Include received server commands which build the communication protocol.
 *
 * @author Rodrigo Martins Racanicci
 */
public interface ConnectionCommand {

    /**
     * Implements command execution.
     *
     * @param client Related client socket.
     * @param args   Command and its arguments.
     */
    public void execute(Socket client, String[] args);
}
